package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 学分发放记录
 */
@ApiModel(value = "com-lanchetech-entity-ExpFlow")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ExpFlow implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 防止重复的关联编号
     */
    @ApiModelProperty(value = "防止重复的关联编号")
    private Long relateId;

    /**
     * 学分
     */
    @ApiModelProperty(value = "学分")
    private Integer exp;

    /**
     * 学分类型
     */
    @ApiModelProperty(value = "学分类型")
    private Byte type;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    private static final long serialVersionUID = 1L;

    public static ExpFlowBuilder builder() {
        return new ExpFlowBuilder();
    }
}